home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 22 / CU Amiga Magazine's Super CD-ROM 22 (1998)(EMAP Images)(GB)[!][issue 1998-05].iso / PowerPC / Programming / PPCSmallEiffel / lib_show / bench4 / bench.csh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1998-01-16  |  255 b   |  14 lines

  1. #!/bin/csh -f
  2. #
  3. # Run this file to have a comparison 
  4. #
  5. foreach b (*_bench.e)
  6.     set cmd="compile $b make -no_split -boost -O3"
  7.     set cmd="${SmallEiffel}/bin/$cmd"
  8.     $cmd >& /dev/null
  9.     echo "$b : "
  10.     /bin/time a.out >&! tmp
  11.     grep "user" tmp
  12. end
  13. /bin/rm -f tmp
  14.